/*
* amr3bind.h
* Binding [C] for amr3bind.c [C++] implementation
*/

#ifndef rtree_h
#define rtree_h

#ifdef __cplusplus
extern "C" {
#endif

void *RtreeCreate(void);
void RtreeDestroy(void *r);
void RtreeInsert(void *r,
                 void *info,
                 double xmin,double xmax,
                 double ymin,double ymax,
                 double zmin,double zmax);
void RtreeDelete(void *r,
                 void *info,
                 double xmin,double xmax,
                 double ymin,double ymax,
                 double zmin,double zmax);
void RtreeInitTraverse(void *r);
void *RtreeTraverse(void *r,
                    double *xmin,double *xmax,
                    double *ymin,double *ymax,
                    double *zmin,double *zmax);
void RtreeInitSearchBox(void *r,
                        double xmin,double xmax,
                        double ymin,double ymax,
                        double zmin,double zmax);
void *RtreeSearchBox(void *r,
                     double *xmin,double *xmax,
                     double *ymin,double *ymax,
                     double *zmin,double *zmax);

int RtreeNumber(void *r);

#ifdef __cplusplus
}
#endif

#endif
